<?php
declare(strict_types=1);
namespace addons\app\goodsdelivery;

class Install{

    public static $files=[
        "app/admin/controller/delivery",
        "app/admin/view/delivery",
        "app/api",
        "app/common/service/msg/WechatMsg.php",
        "app/common/library/Pay.php",
        "app/common/model/delivery",
        "uniapp",
    ];

    public static $unpack=[
        "uniapp/.hbuilderx",
        "uniapp/unpackage",
    ];

    public static $menu=[
        ['id'=>36,'controller'=>'','action'=>'','title'=>'配送系统','icon'=>'fa fa-beer','ismenu'=>1,'menutype'=>'addtabs','extend'=>'','weigh'=>956,'childlist'=>[['id'=>37,'controller'=>'','action'=>'','title'=>'业务配置','icon'=>'fa fa-bookmark','ismenu'=>1,'menutype'=>'addtabs','extend'=>'','weigh'=>955,'childlist'=>[['id'=>38,'controller'=>'app\admin\controller\delivery\Goods','action'=>'index','title'=>'商品管理','icon'=>'fa fa-h-square','ismenu'=>1,'menutype'=>'addtabs','extend'=>'','weigh'=>952,'childlist'=>[['id'=>39,'controller'=>'app\admin\controller\delivery\Goods','action'=>'["index","add","edit","multi","del","setSpec"]','title'=>'["查看","添加","编辑","更新","删除","规格"]','icon'=>'','ismenu'=>0,'menutype'=>'','extend'=>'','weigh'=>938]]],['id'=>40,'controller'=>'app\admin\controller\delivery\Channel','action'=>'index','title'=>'贸易商管理','icon'=>'fa fa-envira','ismenu'=>1,'menutype'=>'addtabs','extend'=>'','weigh'=>951,'childlist'=>[['id'=>41,'controller'=>'app\admin\controller\delivery\Channel','action'=>'["index","add","edit","multi","del","recyclebin"]','title'=>'["查看","添加","编辑","更新","删除","回收站"]','icon'=>'','ismenu'=>0,'menutype'=>'','extend'=>'','weigh'=>937]]]]],['id'=>42,'controller'=>'','action'=>'','title'=>'销售业务','icon'=>'fa fa-shopping-bag','ismenu'=>1,'menutype'=>'addtabs','extend'=>'','weigh'=>954,'childlist'=>[['id'=>43,'controller'=>'app\admin\controller\delivery\channel\Gird','action'=>'index','title'=>'网格管理','icon'=>'fa fa-object-group','ismenu'=>1,'menutype'=>'addtabs','extend'=>'','weigh'=>904,'childlist'=>[['id'=>44,'controller'=>'app\admin\controller\delivery\channel\Gird','action'=>'["index","add","edit","multi","del"]','title'=>'["查看","添加","编辑","更新","删除"]','icon'=>'','ismenu'=>0,'menutype'=>'','extend'=>'','weigh'=>903]]],['id'=>45,'controller'=>'app\admin\controller\delivery\channel\Staff','action'=>'index','title'=>'人员管理','icon'=>'fa fa-github-alt','ismenu'=>1,'menutype'=>'addtabs','extend'=>'','weigh'=>902,'childlist'=>[['id'=>46,'controller'=>'app\admin\controller\delivery\channel\Staff','action'=>'["index","add","edit","multi","del"]','title'=>'["查看","添加","编辑","更新","删除"]','icon'=>'','ismenu'=>0,'menutype'=>'','extend'=>'','weigh'=>901]]],['id'=>47,'controller'=>'app\admin\controller\delivery\channel\Customer','action'=>'index','title'=>'客户管理','icon'=>'fa fa-glide','ismenu'=>1,'menutype'=>'addtabs','extend'=>'','weigh'=>900,'childlist'=>[['id'=>48,'controller'=>'app\admin\controller\delivery\channel\Customer','action'=>'["index","add","edit","multi","del","import","download"]','title'=>'["查看","添加","编辑","更新","删除","导入","下载"]','icon'=>'','ismenu'=>0,'menutype'=>'','extend'=>'','weigh'=>899]]]]],['id'=>49,'controller'=>'','action'=>'','title'=>'积分商城','icon'=>'fa fa-gift','ismenu'=>1,'menutype'=>'addtabs','extend'=>'','weigh'=>953,'childlist'=>[['id'=>50,'controller'=>'app\admin\controller\delivery\channel\Coupon','action'=>'index','title'=>'卡券管理','icon'=>'fa fa-cc-visa','ismenu'=>1,'menutype'=>'addtabs','extend'=>'','weigh'=>935,'childlist'=>[['id'=>51,'controller'=>'app\admin\controller\delivery\channel\Order','action'=>'["index","del","download","recyclebin"]','title'=>'["查看","删除","下载","回收站"]','icon'=>'','ismenu'=>0,'menutype'=>'','extend'=>'','weigh'=>930]]],['id'=>52,'controller'=>'app\admin\controller\delivery\channel\Goods','action'=>'index','title'=>'商品管理','icon'=>'fa fa-envira','ismenu'=>1,'menutype'=>'addtabs','extend'=>'','weigh'=>933,'childlist'=>[['id'=>53,'controller'=>'app\admin\controller\delivery\channel\Coupon','action'=>'["index","add","edit","multi","del"]','title'=>'["查看","添加","编辑","更新","删除"]','icon'=>'','ismenu'=>0,'menutype'=>'','extend'=>'','weigh'=>934]]],['id'=>54,'controller'=>'app\admin\controller\delivery\channel\Order','action'=>'index','title'=>'商城订单','icon'=>'fa fa-server','ismenu'=>1,'menutype'=>'addtabs','extend'=>'','weigh'=>931,'childlist'=>[['id'=>55,'controller'=>'app\admin\controller\delivery\channel\Goods','action'=>'["index","add","edit","multi","del","recyclebin"]','title'=>'["查看","添加","编辑","更新","删除","回收站"]','icon'=>'','ismenu'=>0,'menutype'=>'','extend'=>'','weigh'=>932]]]]]]],
    ];

    public static $require=[
        \Yansongda\Pay\Pay::class,
        \WeMini\Crypt::class,
    ];

    public static $tables=[
        "yun_auto_rule",
        "yun_channel",
        "yun_channel_gird",
        "yun_channel_order",
        "yun_customer_address",
        "yun_customer",
        "yun_customer_goods",
        "yun_customer_register",
        "yun_customer_toker",
        "yun_goods",
        "yun_driver_position",
        "yun_driver",
        "yun_goods_spec",
        "yun_month_bill",
        "yun_seller",
        "yun_seller_commission",
        "yun_seller_customer",
        "yun_seller_settlement",
        "yun_shop_goods",
        "yun_shop_order",
        "yun_text",
        "yun_pay_log",
        "yun_coupon_verify",
        "yun_coupon_list",
        "yun_coupon",
        "yun_card_log",
        "yun_mp_subscribe"
    ];

    public static $addons=[
        "area"=>"省份城市地区数据",
        "qqmap"=>"腾讯地图选择位置坐标",
        "alisms"=>"阿里云短信",
    ];

    public static $config=[
        ['id'=>15,'name'=>'miniapp_id','title'=>'小程序id','type'=>'text','tip'=>'','rules'=>'','extend'=>''],
        ['id'=>16,'name'=>'miniapp_secret','title'=>'小程序secret','type'=>'text','tip'=>'','rules'=>'','extend'=>''],
        ['id'=>17,'name'=>'mch_id','title'=>'服务商商户号','type'=>'text','tip'=>'','rules'=>'','extend'=>''],
        ['id'=>18,'name'=>'mch_secret_key','title'=>'API V3密钥','type'=>'text','tip'=>'','rules'=>'','extend'=>''],
        ['id'=>19,'name'=>'apiclient_key','title'=>'apiclient_key','type'=>'textarea','tip'=>'','rules'=>'','extend'=>''],
        ['id'=>20,'name'=>'apiclient_cert','title'=>'apiclient_cert','type'=>'textarea','tip'=>'','rules'=>'','extend'=>''],
    ];

    //安装扩展时的回调方法
    public static function install()
    {

    }

    //卸载扩展时的回调方法
    public static function uninstall()
    {

    }

}